package dao;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class FabricaConexao {
	
	private static  EntityManagerFactory conexao;
	
	private FabricaConexao(){
		
	}

	public static  EntityManagerFactory getConexao() {
		
		if (conexao == null){
			conexao = Persistence.createEntityManagerFactory("sgh");
			
		}
		
		return conexao;
	}
	
	

}
